<?	session_start(); 
	if(isset($_SESSION['id']) & isset($_SESSION['pass']))
	{
	require("koneksi.php");
	$query=mysql_query("select * from penawaran where jurusan='112' order by semester");
	
?>
<center>
<table border="1">
	<th colspan="13">
		Tampilan Jadwal Mata Kuliah Jurusan Akuntansi
	</th>
	<tr>
		<td>Kode MK</td>
		<td>Nama MK</td>
		<td>Semester</td>
		<td>Periode</td>
		<td>Dosen</td>
		<td>Sesi</td>
		<td>Keterangan</td>
		<td>Hari</td>
		<td>Start</td>
		<td>End</td>
		<td>Jurusan</td>
		<td colspan="2">Action</td>
	</tr>
	<?
		while ($row=mysql_fetch_row($query))
		{
			echo "<tr>
			<td>$row[1]</td>";
		
			$query2=mysql_query("select * from mk111 where kodemk='$row[1]'");
			while($row2=mysql_fetch_row($query2))
			{
				echo "<td>$row2[1]</td>";
			}
		
			echo "<td>$row[2]</td>
			<td>$row[3]</td>
			<td>$row[4]</td>
			<td>$row[5]</td>
			<td>$row[6]</td>
			<td>$row[7]</td>
			<td>$row[8]</td>
			<td>$row[9]</td>
			<td>$row[10]</td>
			<td><a href=form_edit_jadwal.php?kodemk=$row[1]>Edit</a></td>
			<td><a href=del_jadwal.php?kodemk=$row[1]>Delete</a></td>
			</tr>";
			
		}
	?>
	<tr>
		<td colspan="13"><a href="form_add_jadwal.php">Tambah Jadwal</a></td>
	</tr>
	<tr>
		<td colspan="13"><a href="menu_admin.php">Back to Menu Admin</a></td>
	</tr>
</table>
</center>
<? 
	}
	else
	echo "Silahkan <a href='index.php'>Login</a> dulu.";
?>